< previous page page_583 next page >

Page 583
brighter. The polygons used to draw the surface are fairly large, so the edges of the surface and the highlights are still somewhat lumpy.
Summary
Shading models are the next step in the quest for visual realism. Simple lines and hidden surface removal algorithms produce images that can be meaningful, but there is little doubt that they are computer generated. No one would mistake the images in Chapter 13, Three-Dimensional Transformations, for a photograph.
Shading models give dramatic improvements over hidden surface algorithms. Gouraud and Phong shading produce images that are almost realistic enough to be believable. The smoothly varying colors make the result appear quite natural, though perhaps a bit rubbery.
This extra realism comes at a price. The Gouraud and Phong shading programs are much more complicated than the simple line drawing and hidden surface programs described earlier. They are also much slower. On a 133MHz Pentium, program Light4 described earlier in this chapter can display a 100-polygon sphere almost instantly. Program Gouraud takes roughly 6 seconds, and program Phong needs more than 13 seconds.
The Gouraud and Phong shading programs presented in this chapter are still missing several important features. They do not allow reflective or transparent surfaces, they do not display shadows, and they do not take into account interactions between objects in a scene.Chapter 17, Ray Tracing, takes the quest for realism one step further. It uses a simple conceptual model to generate images of near photographic realism.

 
< previous page page_583 next page >